package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.God
 * @since 2020-03-14
 */
@TableName("app_version")
@Getter
@Setter
public class VpnAppVersion extends Model<VpnAppVersion> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "version_id", type = IdType.AUTO)
    private Integer versionId;
    @TableField("version_no")
    private String versionNo;
    private Integer status;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    private String platform;
    @TableField("download_url")
    private String downloadUrl;
    @TableField("is_force")
    private Integer isForce;
    @TableField("version_code")
    private Integer versionCode;
    @TableField("version_desc")
    private String versionDesc;
    @TableField("version_desc_tw")
    private String versionDescTw;
    @TableField("version_desc_en")
    private String versionDescEn;

    @Override
    protected Serializable pkVal() {
        return this.versionId;
    }
}
